package com.bungarus.group.model;

import org.springframework.stereotype.Component;

import java.io.Serializable;

/**
 * Created by tang on 2018/12/2.
 */
@Component
public class AccountName implements Serializable {
    private String sysName;
    private String tenantID;

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (!(o instanceof AccountName)) return false;

        AccountName that = (AccountName) o;

        if (getSysName() != null ? !getSysName().equals(that.getSysName()) : that.getSysName() != null) return false;
        return !(getTenantID() != null ? !getTenantID().equals(that.getTenantID()) : that.getTenantID() != null);

    }

    @Override
    public int hashCode() {
        int result = getSysName() != null ? getSysName().hashCode() : 0;
        result = 31 * result + (getTenantID() != null ? getTenantID().hashCode() : 0);
        return result;
    }

    public String getSysName() {
        return sysName;
    }

    public void setSysName(String sysName) {
        this.sysName = sysName;
    }

    public String getTenantID() {
        return tenantID;
    }

    public void setTenantID(String tenantID) {
        this.tenantID = tenantID;
    }
}
